package cn.jiahua.hospital.mapper;

import cn.jiahua.hospital.dto.HospitalDto;
import cn.jiahua.hospital.pojo.Hospital;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface HospitalMapper {

    public HospitalDto getHospitalDtoById(@Param(value = "id") Integer id);

    public HospitalDto getHospitalDtoById2(@Param(value = "id") Integer id);

    public Hospital getHospitalById(@Param(value = "id") Integer id);

    public List<Hospital> getHospitalListByMap(Map<String, Object> param);

    public Integer getHospitalCountByMap(Map<String, Object> param);

    public Integer insertHospital(Hospital hospital);

    public Integer updateHospital(Hospital hospital);

    public Integer deleteHospitalById(@Param(value = "id") Integer id);

    public Integer batchDeleteHospital(Map<String, List<String>> params);

    public String getPassword(@Param("account") String account);

    public int hospitalSelectCount(@Param(value = "hospitalName") String hospitalName,
                                   @Param(value = "AddressId") Integer AddressId);


	public List<Hospital> hospitalSelectPage(@Param(value = "hospitalName")String hospitalName,
											 @Param(value = "AddressId")Integer AddressId,
											 @Param(value = "pageNo")Integer pageNo,
											 @Param(value = "pageSize")Integer pageSize);

	public List<Hospital> hospitalAttentionData(@Param(value = "pageNo")Integer pageNo,
											 @Param(value = "pageSize")Integer pageSize);

    public List<HospitalDto> hospitalSelectPage2(@Param(value = "hospitalName")String hospitalName,
                                                 @Param(value = "AddressId")Integer AddressId,
                                                 @Param(value = "pageNo")Integer pageNo,
                                                 @Param(value = "pageSize")Integer pageSize);
    public int hospitalSelectCount2(@Param(value = "hospitalName") String hospitalName,
                                   @Param(value = "AddressId") Integer AddressId);

    public List<HospitalDto> hospitalSelectPage3(@Param(value = "hospitalName")String hospitalName,
                                                 @Param(value = "AddressId")Integer AddressId,
                                                 @Param(value = "pageNo")Integer pageNo,
                                                 @Param(value = "pageSize")Integer pageSize);
    public int hospitalSelectCount3(@Param(value = "hospitalName") String hospitalName,
                                    @Param(value = "AddressId") Integer AddressId);


}
